// @Date         2021-12-29
// @Author       Aaron Zhang
// @Description   
// @FileName      test.go   

package v1

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"zl-gin/redis"
	"zl-gin/utils"
)

type df struct {
	Id   int
	Name string
	Age  int
}

func MyTest(c *gin.Context) {
	redis.GetInstance().Set(c, "test", "testv", 0)
	df := &df{
		Id:   1,
		Name: "zhang",
		Age:  19,
	}
	utils.ZapLogInfo("%d - %d, req:%#v", 1, 2, df)

	c.JSON(http.StatusOK, "this is test response")
}
